package com.css.zfzx.fxpg.modules.percent.damage.repository.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 建筑破坏损失比
 *
 * @author leon
 * @date 2020-11-13
 */
@Data
@Entity
@Table(name = "fx_damage_percent")
public class FxDamagePercentEntity implements Serializable {

    /**
     * 严重
     */
    @Column(name = "serious")
    private String serious;
    /**
     * 结构类型
     */
    @Column(name = "structure_type")
    private String structureType;
    /**
     * 创建人
     */
    @Column(name = "create_user")
    private String createUser;
    /**
     * 轻微
     */
    @Column(name = "slight")
    private String slight;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 修改人
     */
    @Column(name = "update_user")
    private String updateUser;
    /**
     * 中等
     */
    @Column(name = "medium")
    private String medium;
    /**
     * 基本
     */
    @Column(name = "intact")
    private String intact;
    /**
     * 完全
     */
    @Column(name = "whole")
    private String whole;
    /**
     * 是否有效
     */
    @Column(name = "is_valid")
    private String isValid;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 行政区划组合编码+探槽码
     */
    @Column(name = "object_code")
    private String objectCode;
    /**
     * 分区标识
     */
    @Column(name = "partition_flag")
    private String partitionFlag;

}

